CMAKE_MINIMUM_REQUIRED(VERSION 3.17)

PROJECT(RUST_REQWEST_CLIENT_BLOCK CXX)
SET(CMAKE_CXX_EXTENSIONS OFF)

FIND_LIBRARY(RUST_REQWEST_CLIENT_BLOCK_DYLIB NAMES RustReqwestClientBlock PATHS ${CMAKE_CURRENT_SOURCE_DIR}/windows/lib NO_DEFAULT_PATH)

ADD_LIBRARY(RUST_REQWEST_CLIENT_BLOCK INTERFACE)
ADD_LIBRARY(LIBRARIES::RUST_REQWEST_CLIENT_BLOCK ALIAS RUST_REQWEST_CLIENT_BLOCK)
TARGET_INCLUDE_DIRECTORIES(RUST_REQWEST_CLIENT_BLOCK INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/windows/include")
TARGET_LINK_LIBRARIES(RUST_REQWEST_CLIENT_BLOCK INTERFACE "${RUST_REQWEST_CLIENT_BLOCK_DYLIB}")